package com.ygh.medical.service.impl;

import com.ygh.medical.entity.Person;
import com.ygh.medical.mapper.PersonMapper;
import com.ygh.medical.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PersonServiceImpl implements PersonService {

    @Autowired
    private PersonMapper personMapper;

    @Override
    public Person findByName(String username) {
        return personMapper.findByName(username);
    }
}
